<template>
  <div class="my-header" v-bg>
    <slot name="left"></slot>
    <slot name="title"></slot>
    <slot name="button"></slot>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  methods: {},
  created() {},
  mounted() {},
  components: {},
  computed: {},
  watch: {},
};
</script>

<style lang="scss" scoped>
.my-header {
  height: 50px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 10px;
  box-sizing: border-box;
  position: relative;
  span:nth-child(1) {
    position: absolute;
    left: 10px;
    top: 15px;
  }
  span:nth-child(3) {
    position: absolute;
    right: 10px;
    top: 15px;
  }
}
</style>
